//
//  ProfileHeaderView.swift
//  SkylowAPP
//
//  Created by 青色石头 on 2024/9/22.
//

import UIKit

class ProfileHeaderView: UIView {

    @IBOutlet weak var bgImg: UIImageView!

    @IBOutlet weak var headerImg: UIImageView!
    
    @IBOutlet weak var nameLbl: UILabel!
    
    @IBOutlet weak var descriptionLbl: UILabel!
    
   
    
    var editProfileBlock: (() -> Void)?
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
        bgImg.image = .image(colors: [.colorWith(hexString: "#B24592"), .colorWith(hexString: "#F15F79")], direction: .leftToRight)
        
    }
    
    
    @IBAction func headerAction(_ sender: Any) {
        
    }
    
    
    @IBAction func editAction(_ sender: Any) {
        
        self.editProfileBlock?()
    }
    
    
    @IBAction func shareAction(_ sender: Any) {
        
    }
    
    
    
}
